package com.dhcc.sds.base.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.framework.base.service.impl.BaseServiceImpl;
import com.dhcc.core.framework.result.node.ZTreeNode;
import com.dhcc.sds.base.dao.SdsUserDeptCfgMapper;
import com.dhcc.sds.base.entity.SdsUserDeptCfgEntity;
import com.dhcc.sds.base.service.ISdsUserDeptCfgService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * 用户与单病种科室关联关系表表数据服务层接口
 * 
 * @ClassName: UserDeptCfgServiceImpl
 * @Description: TODO
 * @author sunyingjie
 * @date 2021-06-25 09:45:46
 */
@Service("userDeptCfgService")
public class SdsUserDeptCfgServiceImpl extends BaseServiceImpl<SdsUserDeptCfgMapper, SdsUserDeptCfgEntity> implements ISdsUserDeptCfgService {

	@Override
	public List<SdsUserDeptCfgEntity> page(Page<SdsUserDeptCfgEntity> page, Map<String, Object> map) {
		return this.baseMapper.page(page, map);
	}
	@Override
	public List<SdsUserDeptCfgEntity> list(Map<String, Object> map) {
		return this.baseMapper.list(map);
	}

	@Override
	public List<ZTreeNode> getDeptTree() {
		List<ZTreeNode> tree = this.baseMapper.deptTree();
		return tree;
	}
}